package com.emerquim.persistence.dao;

// default package



/**
 * PConxentId entity. @author MyEclipse Persistence Tools
 */

public class PConxentId  implements java.io.Serializable {


    // Fields    

     private PEntidad PEntidad;
     private PContactos PContactos;


    // Constructors

    /** default constructor */
    public PConxentId() {
    }

    
    /** full constructor */
    public PConxentId(PEntidad PEntidad, PContactos PContactos) {
        this.PEntidad = PEntidad;
        this.PContactos = PContactos;
    }

   
    // Property accessors

    public PEntidad getPEntidad() {
        return this.PEntidad;
    }
    
    public void setPEntidad(PEntidad PEntidad) {
        this.PEntidad = PEntidad;
    }

    public PContactos getPContactos() {
        return this.PContactos;
    }
    
    public void setPContactos(PContactos PContactos) {
        this.PContactos = PContactos;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PConxentId) ) return false;
		 PConxentId castOther = ( PConxentId ) other; 
         
		 return ( (this.getPEntidad()==castOther.getPEntidad()) || ( this.getPEntidad()!=null && castOther.getPEntidad()!=null && this.getPEntidad().equals(castOther.getPEntidad()) ) )
 && ( (this.getPContactos()==castOther.getPContactos()) || ( this.getPContactos()!=null && castOther.getPContactos()!=null && this.getPContactos().equals(castOther.getPContactos()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getPEntidad() == null ? 0 : this.getPEntidad().hashCode() );
         result = 37 * result + ( getPContactos() == null ? 0 : this.getPContactos().hashCode() );
         return result;
   }   





}